﻿<%@ WebHandler Language="C#" Class="addAppsql" %>

using System.Web;
using QuickORM.Common;

public class addAppsql : IHttpHandler
{
    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        var result = "error";
        var id = context.Request.QueryString["id"];
        var name = context.Request.QueryString["name"];
        var code = context.Request.QueryString["code"];
        var app_index = context.Request.QueryString["index"];
        Handler.addAppsql(id, name, code, app_index, ref result);
        context.Response.Write(result);
    }

    public bool IsReusable
    {
        get { return false; }
    }
}